<?php 

require_once("../shared/connect.php");

$read = mysql_query("SELECT *
					 FROM geocode
					 WHERE input_address LIKE '$_POST[input_address]' OR full_address LIKE '$_POST[input_address]'") 
		or die(mysql_error());

if ($row = mysql_fetch_assoc($read)) {
	//echo $row['position'];
	echo "{\"lat\":$row[lat],\"lng\":$row[lng],\"full_address\":\"$row[full_address]\"}";
	
}

?>